load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRF_contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/contrib/ut_string.ncl"
load "/public/users/wrf/Codes/WRF_scripts/utils/substring.ncl"
load "/public/users/wrf/Codes/WRF_scripts/WRF_Post/wrf_dyy_get_site_uvmet.ncl"

ncfile = "/public/users/wrf/wrfout/2012111208/wrfout_d02_2012-11-12_00:00:00"

a = addfile(ncfile + ".nc", "r")

j = (/250,251/)
i = (/290,291/)
k = ispan(0,2,1)

uvmet = wrf_dyy_get_site_uvmet(a, "uvmet", 1, k, j, i)
print(uvmet)
